package de.smarthome.controllable;

import org.json.JSONObject;

import android.util.Log;

public class LPWindow {
	
	private static final String open = "20";
	private static final String close= "0";
	private static final String SPEED = "FAST";

	/*
	 * -----------------window Dining 0-----------------
	 */
	public static JSONObject winDiningZeroOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winDining0", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winDiningZeroClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winDining0", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Dining 1-----------------
	 */
	
	public static JSONObject winDiningOneOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winDining1", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winDiningOneClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winDining1", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Kitchen 0-----------------
	 */
	
	public static JSONObject winKitchenZeroOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winKitchen0", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winKitchenZeroClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winKitchen0", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Dining 1-----------------
	 */
	
	public static JSONObject winKitchenOneOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winKitchen1", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winKitchenOneClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winKitchen1", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Lounge 0-----------------
	 */
	
	public static JSONObject winLoungeZeroOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge0", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winLoungeZeroClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge0", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Lounge 1-----------------
	 */
	
	public static JSONObject winLoungeOneOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge1", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winLoungeOneClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge1", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Lounge 1-----------------
	 */
	
	public static JSONObject winLoungeTwoOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge2", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winLoungeTwoClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge2", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Lounge 3-----------------
	 */
	
	public static JSONObject winLoungeThreeOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge3", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winLoungeThreeClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge3", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------window Lounge 4-----------------
	 */
	
	public static JSONObject winLoungeFourOpen() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge4", open, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject winLoungeFourClose() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("winLounge4", close, SPEED));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	

}
